package cn.tedu.jsd2206csmall.product.ex;

import cn.tedu.jsd2206csmall.product.web.ServiceCode;

/**
 *  业务异常
 *
 * @author xufaxin
 * @date:2022/09/27
 **/
public class ServiceException extends RuntimeException {

    private ServiceCode serviceCode;

    public ServiceException() {
        super();
    }

    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
